package _spring_test._cache;

import org.springframework.cache.annotation.Cacheable;

/**
 * @Author: huangya
 * @Date: 2020/6/20
 * @Description:
 */
public class AccountServiceImpl implements IAccountService {

    // 使用了一个缓存名叫 accountCache
    @Cacheable(value = "accountCache")
    @Override
    public Account getAccountByName(String userName) {
        System.out.println("get account info from db..");
        return null;
    }
}
